package com.hxd.otc.module.my.contract;

import com.hxd.otc.module.my.bean.ImageCodeBean;
import com.hxd.otc.mvp.base.IBasePresenter;
import com.hxd.otc.mvp.base.IBaseView;

/**
 * Created by lzy on 2018/6/15 0015.
 * description ${修改手机号 Contract}
 */
public interface ChangePhoneContract {
    interface View extends IBaseView {

        void checkNewPhoneSuccess(String phone, ImageCodeBean imageCodeBean);

        void checkNewPhoneFail(String errMessage);

        void getUpdatePhoneVerCodeSuccess(String msg, boolean isOld);

        void getUpdatePhoneVerCodeFail(String errMessage, boolean isOld);

        void getNewPhoneVerCodeSuccess(String msg);

        void getNewPhoneVerCodeFail(String errMessage);

        void conBindPhoneSuccess(String phone, String msg);

        void onModifyBoundPhoneSuccess(String newPhone, String msg);
    }

    interface Presenter extends IBasePresenter {
        void findUser(String phone);

        void onBindPhone(String phone, String verCode, String countryId);

        void getUpdatePhoneVerCode(String phone, String countryId, boolean isOld);

        void getNewBoundPhoneVerCode(String phone);

        void onModifyBoundPhone(String newPhone, String oldCode, String newCode, String countryId);
    }
}
